{extend name="ashippingmanagement3/Public/base" /}
{block name="container"}
     <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">零售数据日志</h1>
    </div>
    <!-- 标题 -->
  <form action="" class="form-inline" method="post">
      <table class="table table-bordered" style="margin: 0">
      <tr>
        <td>选择日期</td>
        <td>
          <input type="text" class="form-control layer-date" value="<?php if(isset($where['start'])) echo $where['start']; ?>" name="start" id="start" style="min-width: 120px;width: 120px;"> 到
          <input type="text" class="form-control layer-date" value="<?php if(isset($where['end'])) echo $where['end']; ?>" name="end" id="end" style="min-width: 120px;width: 120px;">
          <span class="lr_5"></span> <button class="btn btn-info" type="submit">查询</button>
        </td>
      </tr>
    </table>
    <table class="table table-bordered text-center table-hover">
      <tr class="info">
        <th class="text-center">No.</th>
        <th class="text-center">操作人</th>
        <th class="text-center">操作记录</th>
        <th class="text-center">导入文件(可下载)</th>
        <th class="text-center">操作日期</th>
      </tr>
        {volist name="data" id="list"}
        <tr>
            <td>{$i}</td>
            <td>{$list.operator}</td>
            <td>{$list.log}</td>
            <td><a href="{:url('Ashippingmanagement/downFile')}?path=/uploads/bx_wd/{$list.file}">{$list.file}</a></td>
            <td>{$list.date}</td>
        </tr>
        {/volist}
     
  </table>
      <h5 class="text-center">
          总共有{$count}条记录，第{$page}/{$maxpage}页，当前页：<input id="page" type="text" name="pages" style="width: 70px;" value="" class="form-control" /><button type="submit" style="height: 23px;" id="gopage">GO</button>&nbsp;&nbsp;<button type="submit" onclick="$('#form_id').find('select').val('');$('#form_id').find('input').val('');" style="height: 23px;" id="fistpage">首页</button>&nbsp;&nbsp; 每页显示
          <select id="pagesize" name="limts" style="width: 70px" class="form-control">
              <option value='1'>1</option>
              <option value='5'>5</option>
              <option value='10'>10</option>
          </select>条
          <script>
              $('#pagesize').val("{$limit}");
          </script>
      </h5>
  </form>
       <script>
          $(document).ready(function(){
               var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
          })

      //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
       </script>
   {/block}